import Router from 'koa-router';
import abc from './Controller/use.js';
import abc from './Controller/role.js';
import fs from 'fs';

const router=new Router();

for(let item in abc){
    let temArr=item.split(' ');
    let method=temArr[0];
    let fn=abc[item];
    let path=temArr[1];
    router[method](path,fn);
}

//获取所有JS文件




//遍历JS文件，注册路由



export let zjj=router.routes();